package com.easy.web.vo;

import com.easy.web.model.User;
import com.easy.web.model.UserLevel;
import org.apache.commons.beanutils.BeanUtils;

import java.lang.reflect.InvocationTargetException;

/**
 * Created by 郏高阳 on 2016/11/30.
 */
public class UserVo extends User {

    public UserVo(){}

    public UserVo(User user){
        try {
            BeanUtils.copyProperties(this,user);
        } catch (IllegalAccessException | InvocationTargetException e) {
            e.printStackTrace();
        }
    }

    private UserLevel userLevel;

    public UserLevel getUserLevel() {
        return userLevel;
    }
    public void setUserLevel(UserLevel userLevel) {
        this.userLevel = userLevel;
    }

}
